﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ObviousCode.Aspect.PluginLibrary.Interfaces;
using System.Drawing;

namespace ObviousCode.Aspect.PluginLibrary.Event
{
    public class AspectObjectBoundsRequestEventArgs : EventArgs
    {
        RectangleF _requestedBounds;
        public bool BoundsLocated { get; private set; }
        public IAspectItem AspectItem { get; set; }
        public Graphics Graphics { get; set; }
        public AspectObjectBoundsRequestEventArgs(IAspectItem item, Graphics graphics)
        {
            AspectItem = item;
            Graphics = graphics;
        }

        public RectangleF RequestedBounds
        {
            get { return _requestedBounds; }
            set 
            {
                _requestedBounds = value;
                BoundsLocated = true;
            } 
        }
    }
}
